package com.fzj.example.design.builder;
/**
* @Description 指挥者
* @Author  fanzj
* @Date   2020/5/7 6:55 下午
* @Param
* @Return
* @Exception
*
*/
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    //产品构建与组装方法

    public Product construct(){
        builder.buildA();
        builder.buildB();
        builder.buildC();
        return builder.getResult();
    }

}
